package com.fy.sys.mapper;

import com.fy.sys.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fy.sys.vo.DepartTreeVo;
import org.apache.ibatis.annotations.Mapper;
import com.fy.core.vo.ApiRest;
import com.fy.core.vo.PageResult;
import com.fy.repo.entity.Repo;
import com.fy.sys.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author lz
 * @since 2023-06-14
 */
public interface DeptMapper extends BaseMapper<Dept> {

    /**
     * 查找父部门
     * @return
     */
    List<Dept> findDepts();

    public List<DepartTreeVo> findDepart();
    /**
     * 修改delflag 达到删除目的
     * @param deptId
     * @return
     */
     void updateByDelflag(Long deptId);




}
